-- azrael_cat
-- created by zhuangsl
-- 召唤兽：阿兹猫

return {
    fetchInitData = function(classId)
        -- 初始属性和难度挂钩
        local hp = 100;
        local attack = 5;

        local dungeonId = DungeonM.getDungeonId();
        local parentId = DungeonAreaM.getParentId(dungeonId);
        if DungeonAreaM.query(parentId, "type") == "main" then
            local layerFix = DungeonAreaM.query(dungeonId, "layer_fix");
            local fix = math.modf(layerFix / 4);
            hp = hp + 20 * fix;
            attack = attack + fix;
        end

        -- 加成
        prop = PropM.combine(ME.user, "aid_attrib2", "azrael_hp");
        hp = PropM.apply(prop, hp);

        prop = PropM.combine(ME.user, "aid_attrib2", "azrael_attack");
        attack = PropM.apply(prop, attack);

        return {
            ["hp"] = hp,
            ["max_hp"] = hp,
            ["attack"] = attack,
        };
    end,
};
